package event

type Listener interface {
	Handle(e Event) error
}

type ListenerFunc func(e Event) error

func (fn ListenerFunc) Handle(e Event) error {
	return fn(e)
}
